package com.hzdl.flower.service.impl;

import com.hzdl.flower.bean.User;
import com.hzdl.flower.mapper.UserMapper;
import com.hzdl.flower.service.UserService;
import com.hzdl.flower.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
@Autowired
private UserMapper userMapper;

    @Override
    public User login(UserVo userVo) {
        return userMapper.login(userVo);
    }

    @Override
    public int register(UserVo userVo) {
        return userMapper.register(userVo);
    }
}
